calculating area using the AREA RULE